#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>

int main()
{

    pid_t id  = fork();
    if(id)
    {
            printf("父进程running...\n");
    }else{
        while(1) {
             printf("子进程running...\n");
            sleep(1); 
        }
    }
    return 0;
}
